<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基础信息-优惠券管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link href="../../../css/base/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../../../css/base/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../../css/base/animate.min.css" rel="stylesheet">
    <link href="../../../css/plugins/table/bootstrap-table.css" rel="stylesheet"/>
    <link href="../../../css/plugins/alert/messager.css" rel="stylesheet"/>
    <link href="../../../css/plugins/date/bootstrap-datetimepicker.css" rel="stylesheet">
    <link href="../../../css/plugins/date/daterangepicker-bs3.css" rel="stylesheet">
    <link href="../../../css/plugins/clockpicker/bootstrap-clockpicker.min.css" rel="stylesheet"/>
    <link href="../../../css/plugins/select/bootstrap-multiselect.css" rel="stylesheet"/>
    <link href="../../../css/plugins/fileinput/fileinput.css" rel="stylesheet">
    <link href="../../../css/style-main.css" rel="stylesheet">
    <link href="../../../css/style.css" rel="stylesheet">
    <link href="../../../css/plugins/icheck/orange.css" rel="stylesheet">
    <!--[if lt I]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
</head>

<body class="gray-bg" data-js="../../../js/module/base/bdm_ProductionCost">

<div class="row white-bg dashboard-header">
    <div class="col-sm-12">
    </div>
</div>

<div class="wrapper wrapper-content fadeInRight">

    <!-- 列表信息 -->
    <div id="main_div" class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>列表</h5>
            </div>
            <div class="ibox-content">
                <div class="row">
                    <div id="search-toolbar" class="search-toolbar">
                        <div class="form-inline" role="form">
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_CompanyName" placeholder="请输入公司名称"/>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_CostCenterCode" placeholder="请输入成本中心编码"/>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_CostCenterName" placeholder="请输入成本中心名称"/>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_AccountViewCode" placeholder="请输入科目编码"/>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_AccountViewName" placeholder="请输入科目名称"/>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_MaterialCode" placeholder="请输入物料编码"/>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" id="s_MaterialName" placeholder="请输入物料名称"/>
                            </div>

                            <div class="form-group">
                                <button type="button" class="btn btn-search" id="btn_search"><i class="fa fa-search"> </i> 搜索</button>
                                <button id="btn_add" class="btn btn-add"><i class="fa fa-plus"></i> 增加</button>
<!--                                <button id="btn_deletes" class="btn btn-remove"><i class="glyphicon glyphicon-remove"></i> 批量删除</button>-->
<!--                                <button id="btn_export" class="btn btn-default"><i class="glyphicon glyphicon-arrow-down"></i> 导出Excel</button>-->
                                <button id="btn_import" class="btn btn-default"><i class="glyphicon glyphicon-arrow-up"></i> 导入Excel</button>
                            </div>
                        </div>
                    </div>
                    <table id="myTable" data-click-to-select="true" data-show-add="true" data-show-refresh="true" data-show-toggle="true" data-show-columns="true">

                    </table>
                </div>
            </div>
        </div>
    </div>

    <!-- 编辑信息 -->
    <div id="edit_div" class="row" style="display: none;">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>编辑</h5>
                    <div class="ibox-tools">
                        <a class="back_list" href="javascript:void(0)">
                            <i class="fa fa-reply"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form id="fm" method="post" class="form-horizontal" role="form">
                        <input type="hidden" id="_id"/>
                        <div class="modal-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">公司</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" id="CompanyId" name="CompanyId" placeholder="请选择公司"/>
                                </div>

                                <label class="col-sm-2 control-label">会计期间</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" id="PeriodYear" name="PeriodYear" placeholder="请输入会计期间"/>
                                </div>

                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-0">

                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">成本中心</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="CostCenterId" name="CostCenterId" placeholder="请选择成本中心"/>
                                </div>

                                <label class="col-sm-2 control-label">科目</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="AccountViewCode" name="AccountViewCode" placeholder="请选择科目"/>
                                </div>

                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-2">

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">物料</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="MaterialId" name="MaterialId" placeholder="请选择物料"/>
                                </div>

                                <label class="col-sm-2 control-label">标准箱规格</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="StdPackQuantity" name="StdPackQuantity" readonly="readonly" placeholder="请输入会计期间"/>
                                </div>

                                <label class="col-sm-2 control-label">产品分类</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="GroupName" name="GroupName" readonly="readonly" placeholder="请输入产品分类"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">生产订单号</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="ProductionOrderNumber" name="ProductionOrderNumber" placeholder="请输入生产订单号"/>
                                </div>

                                <label class="col-sm-2 control-label">工单类别</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="WorkOrderCategory" name="WorkOrderCategory" placeholder="请输入工单类别"/>
                                </div>

                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-2">

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">生产日期</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="ProductionDate" name="ProductionDate" placeholder="请输入生产日期"/>
                                </div>

                                <label class="col-sm-2 control-label">产线工时</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="WorkHours" name="WorkHours" placeholder="请输入产线工时"/>
                                </div>

                                <label class="col-sm-2 control-label">产线人数</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="ProductionLineNumber" name="ProductionLineNumber" placeholder="请输入产线人数"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">生产数量</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="ProductionQuantity" name="ProductionQuantity" placeholder="请输入生产数量"/>
                                </div>

                                <label class="col-sm-2 control-label">总工时</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="TotalWorkHours" name="TotalWorkHours" placeholder="请输入总工时"/>
                                </div>

                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-2">

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">直接材料</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="DirectMaterial" name="DirectMaterial" placeholder="请输入直接材料"/>
                                </div>

                                <label class="col-sm-2 control-label">包装材料</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="Packaging" name="Packaging" placeholder="请输入包装材料"/>
                                </div>

                                <label class="col-sm-2 control-label">外协加工费</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="ExternalProcessingFee" name="ExternalProcessingFee" placeholder="请输入外协加工费"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">人工成本</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="LabourCost" name="LabourCost" placeholder="请输入人工成本"/>
                                </div>

                                <label class="col-sm-2 control-label">物耗</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="Wastage" name="Wastage" placeholder="请输入物耗"/>
                                </div>

                                <label class="col-sm-2 control-label">能源费</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="EnergyCost" name="EnergyCost" placeholder="请输入能源费"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">折旧摊销</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="DepreciationAmortization" name="DepreciationAmortization" placeholder="请输入折旧摊销"/>
                                </div>

                                <label class="col-sm-2 control-label">办公费</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="AdministrativeExpenses" name="AdministrativeExpenses" placeholder="请输入办公费"/>
                                </div>

                                <label class="col-sm-2 control-label">修理费</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="RepairCharge" name="RepairCharge" placeholder="请输入修理费"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">安全生产准备金</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="SafeProductionReserve" name="SafeProductionReserve" placeholder="请输入安全生产准备金"/>
                                </div>

                                <label class="col-sm-2 control-label">大修理</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="ExtensiveRepair" name="ExtensiveRepair" placeholder="请输入大修理"/>
                                </div>

                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-2">

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">成本总额</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="TotalCost" name="TotalCost" placeholder="请输入成本总额"/>
                                </div>

                                <label class="col-sm-2 control-label">单位成本</label>
                                <div class="col-sm-2">
                                    <input type="number" class="form-control" id="UnitCost" name="UnitCost" placeholder="请输入单位成本"/>
                                </div>

                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-2">

                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <div id="btn-add-div" style="display: none">
                                    <button type="submit" class="btn btn-main">添加</button>
                                    <button id="btn_contiune_add" type="button" class="btn btn-main">保存加</button>
                                    <button class="btn btn-white back_list" type="reset">取消并返回</button>
                                </div>
                                <div id="btn-edit-div" style="display: none">
                                    <button type="submit" class="btn btn-main">修改</button>
                                    <button class="btn btn-white back_list" type="reset">取消并返回</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- 导入Excel -->
    <div id="import_div" class="row" style="display: none;">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>导入生产成本信息</h5>
                    <div class="ibox-tools">
                        <a href="javascript:void(0)" class="back_list">
                            <i class="fa fa-reply"></i> 返回
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form id="fm_import" method="post" class="form-horizontal m-t" role="form">
                        <div class="modal-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">下载模板</label>
                                <div class="col-sm-6">
                                    <p class="form-control-static"><a href="http://172.16.1.178:8080/web/file/production-cost-20250613.xlsx" target="_blank">下载</a></p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">execl文件</label>
                                <div class="col-sm-6">
                                    <input type="file" id="import_file" name="file" class="file-loading"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-6">
                                    <p class="form-control-static alert alert-warning" id="import_tip"></p>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>

<script src="../../../js/base/require.min.js" defer="" data-main="../../../js/main"></script>

</body>

</html>